package org.dochandler.faces.servicefactory;

import org.dochandler.service.LoginService;
import org.dochandler.service.exception.ServiceCreationException;
import org.dochandler.service.util.ServiceFactory;

public class LoginServiceFacesFactory implements ServiceFactory<LoginService> {
	static private LoginServiceFacesFactory instance = null;
	
	private LoginServiceFacesFactory() { }
	
	static public LoginServiceFacesFactory getInstance() {
		if (instance == null) instance = new LoginServiceFacesFactory();
		return instance;
	}
	
	/**
	 * Factory that knows how to create LoginService implementations for the JSF framework 
	 */
	@Override
	public LoginService create(Object... params) throws ServiceCreationException {
		return new LoginService();
	}
}